package com.example.automanagement.mapper;

import com.example.automanagement.dto.OrderDto;
import com.example.automanagement.entity.AutoOrder;
import com.example.automanagement.entity.RepairOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {
    List<RepairOrder> getFixOrder(@Param("userId")String userId);

    List<AutoOrder> getAutoOrder(@Param("userId")String userId);

    List<AutoOrder> getAutoOrderByDepartment(@Param("department")String department);

    AutoOrder getAutoOrderDetail(@Param("autoOrderId")String autoOrderId);

    RepairOrder getRepairOrderDetail(@Param("repairOrderId")String repairOrderId);

    String getDepartment(@Param("userId")String userId);

}
